package com.kingsailor.gunsmith.webmvc;

import edu.jetwinner.util.EasyStringUtil;

import javax.servlet.http.HttpServletRequest;

public class RequestHeaderUtil {

    private RequestHeaderUtil() {
        // reserved.
    }

    public static String getHeader(HttpServletRequest request, String name) {
        String val = request.getHeader(name);
        return EasyStringUtil.isBlank(val) ? "" : val;
    }
}
